import request from '../utils/util'


// 发送验证码
export function gologin(data){
  return request('api/app/index.php?i=2&c=entry&do=send_sms&m=make_speed&',"GET" ,data)
 }
 //待抢单
export function single(data){
  return request('/app/index.php?i=3&j=0&version=1.0.0&m=make_rider&c=entry&do=count_order_number',"GET" ,data)
}
 //个人中心
 export function login(data){
   return request('app/index.php?i=3&j=0&version=1.0.0&m=make_rider&c=entry&do=getOpenid&code=043dVfll2Vpay74uRBll22ite54dVflG',"GET" ,data)
}
//码科同城接单端
 export function menu(data){
   return request('app/index.php?i=3&j=0&version=1.0.0&m=make_rider&c=entry&do=getRiderOrder&status=-1',"GET" ,data)
}
 export function menu1(data){
   return request('app/index.php?i=3&j=0&version=1.0.0&m=make_rider&c=entry&do=getRiderSetting',"GET" ,data)
}
 export function menu2(data){
   return request('app/index.php?i=3&j=0&version=1.0.0&m=make_rider&c=entry&do=messageCount',"GET" ,data)
}
 export function menu3(data){
   return request('app/index.php?i=3&j=0&version=1.0.0&m=make_rider&c=entry&do=riderIsAccept&type=-1',"GET" ,data)
}
 export function menu4(data){
   return request('app/index.php?i=3&j=0&version=1.0.0&m=make_rider&do=getRiderStatus&c=entry',"GET" ,data)
}
 export function refresh(data){
   return request('app/index.php?i=3&j=0&version=1.0.0&m=make_rider&c=entry&do=getRiderOrder&status=-1',"GET" ,data)
}
 export function refresh1(data){
   return request('app/index.php?i=3&j=0&version=1.0.0&m=make_rider&c=entry&do=setRiderLocation&address=%E5%BA%9C%E5%89%8D%E8%B7%AF1%E5%8F%B7%E5%B8%82%E6%94%BF%E5%BA%9C%E5%A4%A7%E9%99%A2&lat=23.129163&lng=113.264435',"GET" ,data)
}
 export function refresh2(data){
   return request('https://restapi.amap.com/v3/geocode/regeo?location=113.264435%2C23.129163&key=fa36db69788b864ba78d90cbd9d3d8af&extensions=all',"GET" ,data)
}